{% load i18n %}
{% if page.paginator.count %}
<div class="clear">
    <div>
        {% if page.has_previous %}
        <a href="?page=1">{% trans "First" %}</a>
        <a href="?page={{page.previous_page_number}}">{% trans "Previous" %}</a>
        {% else %}
        <a>{% trans "Previous" %}</a>
        {% endif %}
        
        {% if page.has_next %}
        <a href="?page={{page.next_page_number}}">{% trans "Next" %}</a>
        <a href="?page={{page.paginator.num_pages}}">{% trans "Last" %}</a>
        {% else %}
        <a>{% trans "Next" %}</a>
        {% endif %}
    </div>
</div>
{% endif %}